# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-ajpy
_pkgname=ajpy
pkgver=0.0.5
pkgrel=7
pkgdesc='AJP package crafting library.'
arch=('any')
url='https://pypi.org/project/ajpy/'
license=('LGPL')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('e2bd4ad7aeb2dc69a2aef14a83e9f55bff11a1c232892062d6694af31055ed1a2a9129804ae445cae391913541864bf37cdf0833eff555ad7af88e12fd81d57e')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

